<div style="background: #ffc43b;" class="ad-bg" [ngStyle]="tagData.cssStyle|styleFilter">

  <ng-container *ngIf="checkArray(tagData.data.images); else isNotArrayTemplate">
    <ng-container *ngFor="let images of tagData.data.images">
      <ng-container *ngIf="images.link?.params.disableClick; else disableClickTemplate">
        <img class="img" src="{{images.link.iconUrl}}" alt="" onerror="this.src='assets/img/default_img_square.png'"
          [ngStyle]="images.link?.params.cssStyle|styleFilter">
      </ng-container>
      <ng-template #disableClickTemplate>
        <img class="img" src="{{images.link.iconUrl}}" alt="" appDebounceClick (debounceClick)="goPage(images.link)"
          onerror="this.src='assets/img/default_img_square.png'" [ngStyle]="images.link?.params.cssStyle|styleFilter">
      </ng-template>
    </ng-container>
  </ng-container>
  <ng-template #isNotArrayTemplate>
    <img class="img" src="{{tagData.data.images.link.iconUrl}}" alt=""
      onerror="this.src='assets/img/default_img_square.png'"
      [ngStyle]="tagData.data.images.link?.params.cssStyle|styleFilter">
  </ng-template>





  <ng-container *ngIf="tagData.data.contact">
    <div class="footer-box">
      <img *ngIf="tagData.data.contact?.link?.iconUrl" [src]="tagData.data.contact?.link?.iconUrl"
        onerror="this.src='assets/img/default_img_square.png'"
        [ngStyle]="tagData.data.contact?.link?.params?.cssStyle|styleFilter" class="contact-img" />
      <span class="scan-box" *ngIf="tagData.data.scan"
        [ngStyle]="tagData.data.scan.link?.params?.boxCssStyle|styleFilter">
        <img *ngIf="tagData.data.scan.link?.iconUrl" [src]="tagData.data.scan.link?.iconUrl"
          onerror="this.src='assets/img/default_img_square.png'" class="scan-img"
          [ngStyle]="tagData.data.scan.link?.params?.boxCssStyle|styleFilter" />
        {{tagData.data.scan.link?.label}}</span>
    </div>
  </ng-container>
</div>